package com.hq.zb.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.hq.zb.dto.UserDto;
import com.hq.zb.model.User;
import com.hq.zb.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author huanghanrui
 * @since 2022-03-06
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 分页查询用户表.
     *
     * @param page
     * @param wrapper
     * @return
     */
    List<UserVo> listByPage(Pagination page, @Param("ew") Wrapper<UserVo> wrapper);

    /**
     * 查询用户
     * @param userDto
     * @return
     */
    List<UserDto> queryList(UserDto userDto);
}
